package com.schoolcloud.serve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 *
 * @TableName spu
 */
@TableName(value ="spu")
@Data
public class Spu implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer spuId;

    /**
     * 名称
     */
    private String spuName;

    /**
     * 分类id
     */
    private Integer categoryId;

    /**
     *品牌名称
     */
    private String brandName;

    /**
     * 状态
     */
    private String status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 所属者
     */
    private Integer userId;

    /**
     * 描述
     */
    private String spuDescription;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
